﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main/Site.Master" AutoEventWireup="true"
    ViewStateMode="Disabled" CodeBehind="ArticleInfo.aspx.cs" Inherits="LongSpeed.WebSite.Main.ArticleInfo" %>

<%@ OutputCache Duration="420" VaryByParam="aid;apart" NoStore="true"%>
<%@ Register Src="~/UserControl/ucKnowledgeNavigator.ascx" TagName="KnowledgeNavigator"
    TagPrefix="uc" %>
<%@ Register Src="~/UserControl/ucPaymentMode.ascx" TagName="PaymentMode" TagPrefix="uc" %>
<%@ Register Src="~/UserControl/ServerTree.ascx" TagName="ServerTree" TagPrefix="uc" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="articleInfoContent" ContentPlaceHolderID="PlaceHolder" runat="server">
    <div>
        <div class="floatleft">
            <uc:ServerTree ID="ucst" runat="server" />
            <uc:KnowledgeNavigator ID="uckn" runat="server" />
            <uc:PaymentMode ID="ucpm" runat="server" />
        </div>
        <div id="mainarea">
            <div class="sblock2">
                <div class="sblock2-top">
                    <div class="articeltitle" style="background-image: none; width: auto; color: Black;
                        float: none;">
                        <h5>
                            <%
                                int articleId = Convert.ToInt32(Request.QueryString[LongSpeed.WebSite.Behaviors.SessionString.ArticleId]);
                                int part = Convert.ToInt32(Request.QueryString[LongSpeed.WebSite.Behaviors.SessionString.ArticlePart]);
                                LongSpeed.WebSite.Behaviors.Article article = new LongSpeed.WebSite.Behaviors.Article();

                                int sumPageCount = 0;
                                article = article.GetArticleByPage(part, 1, 1, ref sumPageCount).FirstOrDefault();

                                var p = new LongSpeed.WebSite.Behaviors.Part();
                                p.Init(part);
                                    
                            %>
                            您的位置：<a href="../Default.aspx" title="首页" target="_parent">首页</a><span style="margin: 0px 5px;">></span>
                            <%=(p.Name) %>
                        </h5>
                    </div>
                </div>
                <div class="sblock2-bottom" id="pgs">
                    <div class="listinfo" style="min-height: 750px;">
                        <%
                            if (article == null)
                            {
                                Response.Write("暂无数据");
                            }
                            else
                            {
                                Response.Write(article.Content);
                            }            
                        %>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>
